import java.awt.Insets;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;


public class PremiereFenetre extends JFrame
{
	public PremiereFenetre ()
	{
		super("Ma première fenètre");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setVisible(true);
		
		JButton b = new JButton();
			b.setMargin(new Insets(0, 0, 0, 0));
			b.setIcon(new ImageIcon("images/unpressed.jpg"));
			b.setPressedIcon(new ImageIcon("images/pressed.jpg"));
		getContentPane().add(b);
		pack();
	}
}
